/**
 * Copyright (c) 2022 Beijing Jiaotong University
 * PhotLab is licensed under [Open Source License].
 * You can use this software according to the terms and conditions of the [Open Source License].
 * You may obtain a copy of [Open Source License] at: [https://open.source.license/]
 *
 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
 * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
 * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
 *
 * See the [Open Source License] for more details.
 *
 * Author: Zhenjie Wei, Qing'ao Zhang
 * Created: Mar. 13, 2023
 * Supported by: National Key Research and Development Program of China
 */

import { fileManager } from "./file"
import { settingManager } from "./setting"
import { graphManager } from "./phot_client/graph"
import { libraryManager } from "./phot_client/library"
import { projectManager } from "./phot_client/project"
import { resourceManager } from "./workbench/resource"
import { workspaceManager } from "./workbench/workspace"
import { materialLibraryManager } from "./material-library"
import { photAnalyzeManager } from "./photAnalize"

export function mainStartUpRoutine() {
    // console.log("mainStartUpRoutine called")
    fileManager.activate()
    settingManager.activate()
    graphManager.activate()
    libraryManager.activate()
    projectManager.activate()
    resourceManager.activate()
    workspaceManager.activate()
    materialLibraryManager.activate()
    photAnalyzeManager.activate()
    // console.log("mainStartUpRoutine finished")
}

export function mainDisposeRoutine() {
    fileManager.dispose()
    settingManager.dispose()
    graphManager.dispose()
    libraryManager.dispose()
    projectManager.dispose()
    resourceManager.dispose()
    workspaceManager.dispose()
    materialLibraryManager.dispose()
    photAnalyzeManager.dispose()
}